package com.effvi.neo4j.demo;

import java.io.File;
import java.io.IOException;

import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.kernel.EmbeddedGraphDatabase;

import com.effvi.neo4j.service.ImportService;
import com.effvi.neo4j.service.impl.ImportServiceImpl;


public class Demo {
	private static final String DB_PATH = "neo4j-store"; 
	private static final String DB_PATH_TEST = "neo4j-test"; 
  
    public static void main(final String[] args) throws IOException {  
        GraphDatabaseService graphDb = new EmbeddedGraphDatabase(DB_PATH); 
        ImportService importer = new ImportServiceImpl();
//        String path = "src/main/resources/relationship_1338874769015.txt";
//        String path = "src/main/resources/tt.txt";
        String path = "d:/1/relationship_1337380516781.txt";
        File file = new File(path);
        importer.importRelationships(file, graphDb);
    } 
}
